package edu.chalmers.Framework_EXAMPLES;

import edu.chalmers.AV_2DPlatformerFramework.Model.GameObject;
import edu.chalmers.AV_2DPlatformerFramework.Model.Hitbox;
import edu.chalmers.AV_2DPlatformerFramework.Model.Texture;

/**
 *
 * @author Richard
 */
public class EXAMPLE_Object_T extends GameObject {
    
    public EXAMPLE_Object_T() throws Hitbox.HitboxMalformedException{
        super(new Hitbox(new int[]{10,70,70,50,50,30,30,10,10}, new int[]{80,80,60,60,0,0,60,60,80}, 9));
        addTexture(new Texture(".\\src\\main\\java\\Textures\\T_Texture_R0.gif", this.getHitbox().getBounds2D()));
    }

    
    @Override
    public void onCollision(GameObject otherObject) {
        System.out.println("Aaaaaaj!");
    }

    @Override
    public GameObject copy() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
